extends "res://Props/scripts/CommonProp.gd"

# 速度药水
# 提升移动速度

@export var time = 5

@onready var timer = $Timer

var body = null

func use(body, _util):
	timer.wait_time = time
	timer.start()
	timer.connect("timeout", timeout)
	body.speed += value
	
	if self.body == null:
		self.body = body

# 到点把速度减回去
func timeout():
	body.speed -= value
